// 公共接口
import { AxiosRequestConfig } from 'axios';
import interceptors from './config/interceptor';
import { InstanceMethod } from './models/ApiModels';

const { post, get }: InstanceMethod = interceptors;
const commonApi = {
  // 获取店铺列表
  getStoreList: () => get('/pc/common/store-list'),
  // 接口格式
  testPost: (params?: {}, config?: AxiosRequestConfig) => post('/test', params, config),
};

export default commonApi;
